﻿<Window x:Class="WpfNearestSide.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Canvas Name="canvas" MouseMove="Canvas_MouseMove" Background="Transparent">
        <Polygon Name="poly" Stroke="Blue" Points="20 20, 250 100, 500 20, 400 300, 250, 250 100 300" />
        <Ellipse Name="ellipsePoint" Fill="Red" Stroke="Red" Width="10" Height="10" />
        <Ellipse Name="ellipsePoint2" Fill="Green" Stroke="Green" Width="10" Height="10" />
    </Canvas>
</Window>
